// pages/add/businessagreement/businessagreement.js
Page({

  data: {
    bottomHeight: getApp().globalData.bottomHeight,
    disabled: true,
    seconds: 10
  },
  onLoad: function (options) {
    let _this = this;
    let timer = null;
    timer = setInterval(function () {
      _this.setData({
        seconds: _this.data.seconds - 1
      });
      if (_this.data.seconds == 0) {
        _this.setData({
          disabled: false
        });
        clearInterval(timer);
      }
    }, 1000);
  },
  agree() {
    wx.navigateTo({
      url: "/pages/add/orderdestail/orderdestail",
    })
  }
})